]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Better API for extensions changing CSS
authorSardem FF7 <sardemff7.pub@gmail.com>
Tue, 1 Feb 2011 14:44:15 +0000 (15:44 +0100)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 1 Feb 2011 15:13:35 +0000 (10:13 -0500)
Rename the setter to reflect the fact that it's the stylesheet which is
changing

Add a getter to allow some useful checks

js/ui/main.js

index 1f650fed91779b1c0c6b71f2e0fdcb60835b545d..16f69774e95cf1c9efd08cb445fe439f4ec82b8c 100644 (file)
@@ -208,13 +208,26 @@ function start() {
 }
 
 /**
- * setTheme
+ * getThemeStylesheet:
+ *
+ * Get the theme CSS file that the shell will load
+ *
+ * Returns: A file path that contains the theme CSS,
+ *          null if using the default
+ */
+function getThemeStylesheet()
+{
+    return _css_stylesheet;
+}
+
+/**
+ * setThemeStylesheet:
  * @css_stylesheet: A file path that contains the theme CSS,
  *                  set it to null to use the default
  *
  * Set the theme CSS file that the shell will load
  */
-function setTheme(css_stylesheet)
+function setThemeStylesheet(css_stylesheet)
 {
     _css_stylesheet = css_stylesheet;
 }